package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Address;

import java.util.List;
import java.util.Map;

/*
地址相关持久层
 */
public interface AddressDao {

    //根据id删除
    void deleteById(Integer id);

    //清除中间表
    void deleteCenter(Integer id);

    //修改
    void edit(Address address);

    //添加
    void add(Address address);

    //查询地图
    List<String> findAllmap();

    //根据id查询
    Address findById(Integer id);

    Page<Address> selectByCondition(String queryString);


    List<Map<String, Object>> findAllAddress();

    String findAddressByOrderId(Integer integer);

}
